package org.yiqixue.accounts.dto;

import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Positive;

import java.math.BigDecimal;

public class DepositRequest {

    @Pattern(regexp="[0-9]{10}", message="手机号必须是10位数字")
    private String mobileNumber;

    @Positive(message = "金额必须大于零")
    private BigDecimal amount;

    private String description;

    public DepositRequest() {
    }

    public DepositRequest(String mobileNumber, BigDecimal amount, String description) {
        this.mobileNumber = mobileNumber;
        this.amount = amount;
        this.description = description;
    }

    public String getMobileNumber() {
        return mobileNumber;
    }

    public void setMobileNumber(String mobileNumber) {
        this.mobileNumber = mobileNumber;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
} 